package org.wenhuayuan.uilibrary.hiitem

import android.view.View
import androidx.recyclerview.widget.RecyclerView
import kotlinx.android.extensions.LayoutContainer

/**
 * 1,gridle中开启开关
 * androidExtensions {
     experimental = true
   }
 * 2,实现接口LayoutContainer
 * 目的就是在编译时kotlin编译器把findViewById编写成findCachedViewById,来实现缓存
 */
class HiViewHolder (val view: View) : RecyclerView.ViewHolder(view), LayoutContainer {
    override val containerView: View?
        get() = view

}